import QtQuick 2.4
import QtQuick.LocalStorage 2.0
import Qt.labs.settings 1.0
import QtQml.Models 2.1
import QtWebSockets 1.0
import QtQuick.Controls 1.4
import "../lib"

FNavigator {
    id: root

    model: ObjectModel {

        FButton {
            text: "添加"
            backgroundColor: "#5b8199"
            width: 96 *__factor__
            height: root.tabHeight
            onClicked:{tab.item.create()}
        }
        FButton {
            text: "编辑"
            backgroundColor: "#5b8199"
            width: 96 *__factor__
            height: root.tabHeight
            onClicked:{tab.item.modify()}
        }
        FButton {
            text: "删除"
            backgroundColor: "#5b8199"
            width: 96 *__factor__
            height: root.tabHeight
            onClicked:{tab.item.remove()}
        }
    }
    Tab {
        id: tab
        title: "商品管理"
        GoodsManagerContent{}
    }
}
